<span class="back pull-right">
  <i class="icon icon-chevron-left"></i> <%= link_to 'Regresar', transportistas_path %>
</span>

<%= form_for(@transportista, :html=> {:class => "form-horizontal"}) do |f| %>
  <% if @transportista.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@transportista.errors.count, "error") %> prohibited this transportista from being saved:</h2>

      <ul>
      <% @transportista.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

<div class="widget-caja">
  <div class="widget-titulo">
    <h5>Datos Generales del Transportista</h5>
  </div>

  <div class="widget-contenido">
    <div class="control-group catalogos">
      <label class="control-label titulos">Clave</label>
      <div class="controls">
        <%= f.text_field :ClaveProveedor , :class => "input-xlarge" %>
      </div>
    </div>

    <div class="control-group catalogos">
      <label class="control-label titulos">Abreviación</label>
      <div class="controls">
        <%= f.text_field :Abreviacion, :class => "input-xlarge" %>
      </div>
    </div>

    <div class="control-group catalogos">
      <label class="control-label titulos">Nombre</label>
      <div class="controls">
        <%= f.text_field :NombreRazon , :class => "input-xlarge"%>
      </div>
    </div>

    <div class="control-group catalogos">
      <label class="control-label titulos">Dirección</label>
      <div class="controls">
        <%= f.text_field :Direccion , :class => "input-xlarge"%>
      </div>
    </div>

    <div class="control-group catalogos">
      <label class="control-label titulos">Ciudad</label>
      <div class="controls">
        <%= f.text_field :Ciudad, :class => "input-xlarge" %>
      </div>
    </div>

    <div class="control-group catalogos">
      <label class="control-label titulos">Estado</label>
      <div class="controls">
        <%= f.text_field :Estado , :class => "input-xlarge"%>
      </div>
    </div>

    <div class="control-group catalogos">
      <label class="control-label titulos">Codigo Postal</label>
      <div class="controls">
        <%= f.text_field :CodigoPostal, :class => "input-xlarge" %>
      </div>
    </div>

    <div class="control-group catalogos">
      <label class="control-label titulos">Teléfono</label>
      <div class="controls">
        <%= f.text_field :Telefono , :class => "input-xlarge"%>
      </div>
    </div>

    <div class="control-group catalogos">
      <label class="control-label titulos">Fax</label>
      <div class="controls">
        <%= f.text_field :Fax , :class => "input-xlarge"%>
      </div>
    </div>

    <div class="control-group catalogos">
      <label class="control-label titulos">Emails</label>
      <div class="controls">
        <%= f.text_area :Emails , :class => "input-xlarge"%>
      </div>
    </div>

    <div class="control-group catalogos">
      <label class="control-label titulos">SCAC</label>
      <div class="controls">
        <%= f.text_field :SCAC , :class => "input-xlarge"%>
      </div>
    </div>
    
    <div class="control-group catalogos">
      <label class="control-label titulos">CAAT</label>
      <div class="controls">
        <%= f.text_field :CAT , :class => "input-xlarge"%>
      </div>
    </div>
    
    <div class="control-group catalogos">
      <label class="control-label titulos">DOT</label>
      <div class="controls">
        <%= f.text_field :DOT , :class => "input-xlarge"%>
      </div>
    </div>
    
     <div class="control-group catalogos">
      <label class="control-label titulos">Contacto Tráfico y Cargo</label>
      <div class="controls">
        <%= f.text_field :ContactoTraficoCargo , :class => "input-xlarge"%>
      </div>
    </div>
    
    <div class="control-group catalogos">
      <label class="control-label titulos">Contacto Administrativo y Cargo</label>
      <div class="controls">
        <%= f.text_field :ContactoAdminCargo , :class => "input-xlarge"%>
      </div>
    </div>
    
     <div class="control-group catalogos">
      <label class="control-label titulos">Responsable de Pagos</label>
      <div class="controls">
        <%= f.text_field :ResponsablePagos , :class => "input-xlarge"%>
      </div>
    </div>
  </div>

  <div class="widget-footer">
    <%= f.submit "Guardar", :class => "btn btn-primary" %>
    <%= link_to "Cancelar", transportistas_path, :class => "btn" %>
  </div>
</div>

<% end %>
